1
general::
Phrase(s): keep something under one’s hat
Fig. to keep something a secret; to keep something in one’s mind (only). (If the secret stays under your hat, it stays in your mind. Note the use of but in the examples.) • Keep this under your hat, but I’m getting married. • I’m getting married, but keep it under your hat.
McGrawhill's American Idioms And Phrasal Verbs